﻿<%template _header%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.Utility%>
<!--header end-->

<script type="text/javascript">
	var opwdok = false;
	var pwdok = false;
	var pwd1ok = false;
	
	function checkform()
	{
		_$("creatform").submit();
	}
</script>	

<!--主体-->
	

<div class="layout-cols2">

<div class="pannelcontent_1">

	<div class="pcontent">
	   <div  class="panneldetail">
		<%template _memgroupmenu%>
			<div class="pannelbody">
			
                <%if IsPost%>
                <%template _msgbox%>
                <%else%>

				<form action="" method="post" ID="creatform" enctype="multipart/form-data">
					<div class="groupadmin">
						<table border="0" cellpadding="0" cellspacing="0" class="editboxstyle">
								
								<tr>
								<th>圈子名称：</th>
								<td>
								<input name="groupname" id="groupname" type="text" 
								       class="colorblue" onfocus="this.className='colorfocus';"
								       onblur="this.className='colorblue'"
								       value="{GroupData.GroupName}"
								       size="20" />
								 </td>      
								</tr>
								
								<tr>
								<th>
								<p>当前圈子头像：</p>
								<img  src="{GroupData.Logo}" width="70px" height="70" class ="photoimg"/></th>
								<td  valign="bottom">
								<p>更换圈子头像</p>
								<input name="grouplogo" id="grouplogo" type="file" size="20" 
								       class="colorblue" onfocus="this.className='colorfocus';" 
								       onblur="this.className='colorblue';" 
								       />选择本地图片文件
								       </td></tr>
							
								<tr>
								<th>圈子关键字：</th>
								<td>
								<textarea name="groupkeyword" id="groupkeyword"
			                               class="colorblue" onfocus="this.className='colorfocus';"
			                               onblur="this.className='colorblue'"
			                              cols="56" rows="3">{GroupData.Keyword}</textarea>
			                     </td>         

								</tr>
								
								<tr>
								<th>圈子介绍：</th>
								<td>
								 <textarea name="groupintro" id="groupintro" cols="56" rows="3">{GroupData.Introduction}</textarea>
                                </td>
								</tr>
							
								<tr>
								<th>发帖权限：</th>
								<td>
  				      <input type="radio" name="groupbrowser" value="0"
					             class="colorblue" onfocus="this.className='colorfocus';"
					             onblur="this.className='colorblue'" 
					             <%csharp%>if(GroupData.BrowserPermission == Constants.BrowserOpen) { <%/csharp%>
					             checked
					             <%csharp%> } <%/csharp%>
					             >所有人都能浏览 &nbsp;&nbsp;
	  			      <input type="radio" name="groupbrowser" value="1" 
					             class="colorblue" onfocus="this.className='colorfocus';"
					             onblur="this.className='colorblue'" 
					             <%csharp%>if(GroupData.BrowserPermission == Constants.BrowserLimit) { <%/csharp%>
					             checked
					             <%csharp%> } <%/csharp%>
					             />只有圈子成员才能浏览
					             </td>
					             </tr>
								
								<tr>
								<th>加入权限：</th>
								<td>
  				      <input type="radio" name="groupjoin" value="0"
					             class="colorblue" onfocus="this.className='colorfocus';"
					             onblur="this.className='colorblue'" 
					             <%csharp%>if(GroupData.JoinPermission == Constants.JoinOpen) { <%/csharp%>
					             checked
					             <%csharp%> } <%/csharp%>
					             >加入圈子不需要批准 &nbsp;&nbsp;
	  			      <input type="radio" name="groupjoin" value="1" 
					             class="colorblue" onfocus="this.className='colorfocus';"
					             onblur="this.className='colorblue'" 
					             <%csharp%>if(GroupData.JoinPermission == Constants.JoinLimit) { <%/csharp%>
					             checked
					             <%csharp%> } <%/csharp%>
					             >加入圈子需要管理员批准
					             </td>
					             </tr>
														
								<tr>
								<td  colspan="2" align="center">
								<input type="button" name="btnSubmit" value="确定" class="buttonstyle" 
								       ID="btnSubmit" onclick="checkform();"/>
								 </td>      
								</tr>
								
							</table>	
					</div>	
				</form>
						
                <%/if%>		
			</div>
		</div>
</div>
</div>				

</div>
<!--主体-->
<%template _footer%>
